From 8a01e90608f1985e241688bf92702e67293bbb12 Mon Sep 17 00:00:00 2001 From: Lapo Calamandrei Date: Tue, 22 Jul 2014 20:21:30 +0200 Subject: [PATCH] Adwaita: position needs-attention dot in rtl --- gtk/resources/theme/Adwaita/_common.scss | 6 ++++-- gtk/resources/theme/Adwaita/gtk-contained-dark.css | 2 ++ gtk/resources/theme/Adwaita/gtk-contained.css | 2 ++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gtk/resources/theme/Adwaita/_common.scss b/gtk/resources/theme/Adwaita/_common.scss index 0ca81f44d5..975bba1269 100644 --- a/gtk/resources/theme/Adwaita/_common.scss +++ b/gtk/resources/theme/Adwaita/_common.scss @@ -253,7 +253,6 @@ $_dot_color: if($variant=='light', $selected_bg_color, lighten($selected_bg_color,15%)); @keyframes needs_attention { from { - //background-size: 0 0, 0 0; background-image: -gtk-gradient(radial, center center, 0, center center, 0.01, @@ -261,7 +260,6 @@ $_dot_color: if($variant=='light', $selected_bg_color, to(transparent)); } to { - //background-size: 6px 6px, 6px 6px; background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, @@ -415,6 +413,10 @@ $_dot_color: if($variant=='light', $selected_bg_color, @if $variant == 'light' { background-position: right 3px, right 4px; } @else { background-position: right 3px, right 2px; } &:backdrop { background-size: 6px 6px, 0 0;} + &:dir(rtl) { + @if $variant == 'light' { background-position: left 3px, left 4px; } + @else { background-position: left 3px, left 2px; } + } } &.needs-attention:active > GtkLabel, &.needs-attention:active > GtkImage { diff --git a/gtk/resources/theme/Adwaita/gtk-contained-dark.css b/gtk/resources/theme/Adwaita/gtk-contained-dark.css index b675019273..a3d891da3c 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained-dark.css +++ b/gtk/resources/theme/Adwaita/gtk-contained-dark.css @@ -511,6 +511,8 @@ background-position: right 3px, right 2px; } .stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher > .button.needs-attention > GtkImage:backdrop { background-size: 6px 6px, 0 0; } + .stack-switcher > .button.needs-attention > GtkLabel:dir(rtl), .stack-switcher > .button.needs-attention > GtkImage:dir(rtl) { + background-position: left 3px, left 2px; } .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher > .button.needs-attention:active > GtkImage { animation: none; background-image: none; } diff --git a/gtk/resources/theme/Adwaita/gtk-contained.css b/gtk/resources/theme/Adwaita/gtk-contained.css index bdcbba8822..96e8a71774 100644 --- a/gtk/resources/theme/Adwaita/gtk-contained.css +++ b/gtk/resources/theme/Adwaita/gtk-contained.css @@ -503,6 +503,8 @@ background-position: right 3px, right 4px; } .stack-switcher > .button.needs-attention > GtkLabel:backdrop, .stack-switcher > .button.needs-attention > GtkImage:backdrop { background-size: 6px 6px, 0 0; } + .stack-switcher > .button.needs-attention > GtkLabel:dir(rtl), .stack-switcher > .button.needs-attention > GtkImage:dir(rtl) { + background-position: left 3px, left 4px; } .stack-switcher > .button.needs-attention:active > GtkLabel, .stack-switcher > .button.needs-attention:active > GtkImage { animation: none; background-image: none; } -- 2.30.2